package org.jeecgframework.jwt.util;

import org.jeecgframework.jwt.util.menu.ResponseMessageCodeEnums;

public class ResponseMessages<T> {
    private Integer code;
    private String message;
    private T result;

    public Integer getCode() {
        return this.code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getResult() {
        return this.result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public ResponseMessages() {
    }

    public ResponseMessages(ResponseMessageCodeEnums codeEnum, String message) {
        this.code = codeEnum.getCode();
        this.message = message;
    }

    public ResponseMessages(ResponseMessageCodeEnums codeEnum, String message, T result) {
        this.code = codeEnum.getCode();
        this.message = message;
        this.result = result;
    }
}
